package cn.liberals.basic.utils;

public class AjaxResult {
    // 是否操作成功
    public boolean success = true;

    // 操作提示语
    public String msg = "操作成功";

    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setSuccess(boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
